﻿<UserControl x:Class="NICView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Border Style="{StaticResource MainContent_Background}" Grid.Row="0">
            
            <VirtualizingStackPanel Orientation="Vertical">
            
                <TextBlock Text="Selected Network Interface" Margin="15,15,15,5" Foreground="{StaticResource Font_Brush_DarkBlue}" FontWeight="Bold"/>

                <ComboBox ItemsSource="{Binding Interfaces}" SelectedItem="{Binding SelectedInterface}" x:Name="Combo" Margin="15,0,15,15" DropDownOpened="Combo_DropDownOpened_1">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding NIC}"/>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
            </VirtualizingStackPanel>
            
        </Border>
        
        <xctk:PropertyGrid Grid.Row="1" SelectedObject="{Binding SelectedItem, ElementName=Combo}" ShowSearchBox="False" ShowSortOptions="False" ShowSummary="False" ShowTitle="False"  BorderBrush="LightGray" BorderThickness="0,1,0,0"/>

    </Grid>
</UserControl>
